package org.shangrila.wfm.eo;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the WFM_TASK database table.
 * 
 */
@Entity
@Table(name="WFM_TASK")
@NamedQuery(name="WfmTask.findAll", query="SELECT w FROM WfmTask w")
public class WfmTask implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private String id;

	@Column(name="ACTION_URL")
	private String actionUrl;

	@Column(name="CREATE_TIME")
	private String createTime;

	@Column(name="DISPLAY_NAME")
	private String displayName;

	@Column(name="EXPIRE_TIME")
	private String expireTime;

	@Column(name="FINISH_TIME")
	private String finishTime;

	private String operator;

	@Column(name="OPERATOR_ROLE")
	private String operatorRole;

	@Column(name="PARENT_TASK_ID")
	private String parentTaskId;

	@Column(name="PERFORM_TYPE")
	private String performType;

	private int priority;

	@Column(name="PROCESS_DISPLAY_NAME")
	private String processDisplayName;

	@Column(name="PROCESS_NAME")
	private String processName;

	private int result;
	private String remarks;

	@Column(name="SERVICE_CREATOR")
	private String serviceCreator;

	@Column(name="SERVICE_NO")
	private String serviceNo;

	@Column(name="TASK_NAME")
	private String taskName;

	@Column(name="TASK_TYPE")
	private String taskType;

	@Column(name="\"VARIABLE\"")
	private String variable;

	@Column(name="\"VERSION\"")
	private int version;

	//bi-directional many-to-one association to WfmProcess
	@ManyToOne
	@JoinColumn(name="PROCESS_ID")
	private WfmProcess wfmProcess;

	//bi-directional many-to-one association to WfmService
	@ManyToOne
	@JoinColumn(name="SERVICE_ID")
	private WfmService wfmService;

	public WfmTask() {
	}

	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getActionUrl() {
		return this.actionUrl;
	}

	public void setActionUrl(String actionUrl) {
		this.actionUrl = actionUrl;
	}

	public String getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public String getDisplayName() {
		return this.displayName;
	}

	public void setDisplayName(String displayName) {
		this.displayName = displayName;
	}

	public String getExpireTime() {
		return this.expireTime;
	}

	public void setExpireTime(String expireTime) {
		this.expireTime = expireTime;
	}

	public String getFinishTime() {
		return this.finishTime;
	}

	public void setFinishTime(String finishTime) {
		this.finishTime = finishTime;
	}

	public String getOperator() {
		return this.operator;
	}

	public void setOperator(String operator) {
		this.operator = operator;
	}

	public String getOperatorRole() {
		return this.operatorRole;
	}

	public void setOperatorRole(String operatorRole) {
		this.operatorRole = operatorRole;
	}

	public String getParentTaskId() {
		return this.parentTaskId;
	}

	public void setParentTaskId(String parentTaskId) {
		this.parentTaskId = parentTaskId;
	}

	public String getPerformType() {
		return this.performType;
	}

	public void setPerformType(String performType) {
		this.performType = performType;
	}

	public int getPriority() {
		return this.priority;
	}

	public void setPriority(int priority) {
		this.priority = priority;
	}

	public String getProcessDisplayName() {
		return this.processDisplayName;
	}

	public void setProcessDisplayName(String processDisplayName) {
		this.processDisplayName = processDisplayName;
	}

	public String getProcessName() {
		return this.processName;
	}

	public void setProcessName(String processName) {
		this.processName = processName;
	}

	public int getResult() {
		return result;
	}

	public void setResult(int result) {
		this.result = result;
	}

	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}
	
	public String getServiceCreator() {
		return this.serviceCreator;
	}

	public void setServiceCreator(String serviceCreator) {
		this.serviceCreator = serviceCreator;
	}

	public String getServiceNo() {
		return this.serviceNo;
	}

	public void setServiceNo(String serviceNo) {
		this.serviceNo = serviceNo;
	}

	public String getTaskName() {
		return this.taskName;
	}

	public void setTaskName(String taskName) {
		this.taskName = taskName;
	}

	public String getTaskType() {
		return this.taskType;
	}

	public void setTaskType(String taskType) {
		this.taskType = taskType;
	}

	public String getVariable() {
		return this.variable;
	}

	public void setVariable(String variable) {
		this.variable = variable;
	}

	public int getVersion() {
		return this.version;
	}

	public void setVersion(int version) {
		this.version = version;
	}

	public WfmProcess getWfmProcess() {
		return this.wfmProcess;
	}

	public void setWfmProcess(WfmProcess wfmProcess) {
		this.wfmProcess = wfmProcess;
	}

	public WfmService getWfmService() {
		return this.wfmService;
	}

	public void setWfmService(WfmService wfmService) {
		this.wfmService = wfmService;
	}

}